<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="asset/css/reset.css">
	<link rel="stylesheet" type="text/css" href="asset/css/font-awesome-4.4.0/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="asset/plugin/bootstrap/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="asset/plugin/wangEditor/css/custom.css">

</head>
<body>

<div class="tw-report">
	<h1 style="text-align: center; ">南京市2014年国民经济和社会发展统计公报</h1><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2014年，全市上下在市委、市政府的正确领导下，坚持稳中求进工作总基调，奋力书写“经济发展稳中向好、改革创新实现突破、青奥盛会精彩圆满”的“三份答卷”，统筹推进稳增长、促改革、调结构、重生态、惠民生各项工作，经济社会发展在新常态下呈现“稳中向好、转中提质”的良好态势。</p><h4>一、综合</h4><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经济平稳增长。全年实现地区生产总值8820.75<b class="tags" data-id="tags_040174439885428326_1" style="font-size: 14px;"><!--TrueData[168.8]--></b><span style="font-size: 14px; line-height: 1.8;">亿元，按可比价格计算，比上年增长10.1%。其中，第一产业增加值223.96亿元，增长3.5%；第二产业增加值3671.45亿元，增长8.8%，其中全部工业增加值3165.78亿元，增长9.3%；第三产业增加值4925.34亿元，增长11.5%。按常住人口计算，全市人均地区生产总值达到107545元，按年平均汇率折合17507美元。</span></p><p><br></p>


	<div class="charts">
		<span class="chartjson"><!--TrueData[[["地区","总量","总量排名"],["南京市","337.8","2"],["无锡市","274.9","3"],["徐州市","168.8","5"],["常州市","145.6","7"],["苏州市","545.4","1"],["南通市","189","4"],["连云港市","100.9","11"],["淮安市","120","8"],["盐城市","161.1","6"],["扬州市","107.1","9"],["镇江市","94.1","12"],["泰州市","104.1","10"],["宿迁市","83.7","13"]]]--></span>
		<span class="chartoptiongroup"><!--TrueData[{"id":"6DE56847-A7F1-4C53-9E86-375BC721885B","name":"临时分组","r":0,"c":0,"lr":0,"lc":0,"type":"line","legend":[0,1,0,2],"category":[1,0,13,0],"value":[1,1,13,2]}]--></span>


		<div class="chart-box" style="width: 400px; height: 300px; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; cursor: pointer; background-color: rgba(0, 0, 0, 0);" id="tags_012739122687665705_1" _echarts_instance_="146ee7188088392">

		</div>
	</div>

	<div class="charts">
		<span class="chartjson"><!--TrueData[[["地区","总量","总量排名"],["南京市","337.8","2"],["无锡市","274.9","3"],["徐州市","168.8","5"],["常州市","145.6","7"],["苏州市","545.4","1"],["南通市","189","4"],["连云港市","100.9","11"],["淮安市","120","8"],["盐城市","161.1","6"],["扬州市","107.1","9"],["镇江市","94.1","12"],["泰州市","104.1","10"],["宿迁市","83.7","13"]]]--></span>
		<span class="chartoptiongroup"><!--TrueData[{"id":"6DE56847-A7F1-4C53-9E86-375BC721885B","name":"临时分组","r":0,"c":0,"lr":0,"lc":0,"type":"bar","legend":[0,1,0,2],"category":[1,0,13,0],"value":[1,1,13,2]}]--></span>


		<div class="chart-box" style="width: 400px; height: 300px; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; cursor: pointer; background-color: rgba(0, 0, 0, 0);" id="tags_012739122687665705_2" _echarts_instance_="146718808dd8392">

		</div>
	</div>
</div>

	<script type="text/javascript" src="asset/plugin/echarts/echarts-all.js"></script>
	<script src="data/demo/assets/js/lib/jquery.js"></script>
	<script type="text/javascript" src="asset/js/app.chart.min.js"></script>


	<script type="text/javascript">
		$(document).ready(function() {
			var _options=ChartParser.options();

			$(".charts").each(function(index){

				var chartarrO = $.trim($(this).find(".chartjson").html());
				var chartarr =  JSON.parse(chartarrO.slice(13,chartarrO.length-4));

				var opGroupO = $.trim($(this).find(".chartoptiongroup").html());
				var opGroup =  JSON.parse(opGroupO.slice(13,opGroupO.length-4));

				var cdata=parseData(chartarr,opGroup);

				var chartId = $(this).find('.chart-box').attr("id");
				var chartItem = echarts.init(document.getElementById(chartId))
                chartItem.setOption(cdata);

			})

			$(".tags").each(function(){
				var tagO = $.trim($(this).html());
				$(this).text(tagO.slice(13,tagO.length-4))
			})



			// 处理图表数据
			function parseData(data,group){
			    var option=_options[group.type];
			    var cdata={};
			    option.base.forEach(function(e){
			        if(!!group[e]){
			            var d=getCells(data,group[e],e);
			            cdata[e]={direction:d[0],value:d[1]};
			        }
			    }); 
			    var parse=ChartParser[group.type];
			    if(typeof parse==='function'){
			        return parse(cdata);
			    }
			    return null;
			}

			function getCells(data,sels,type){
			    var values=[];
			    var direction='',ld=0,cd=0;
			    var r=sels[0],c=sels[1],lr=sels[2],lc=sels[3];
			    for(;r<=lr;r++){
			        for(var _c=c;_c<=lc;_c++){
			            var d=data[r][_c];
			            if(d==null){
			                if(type=='value'){
			                    values.push({r:r,c:_c,value:null});
			                }
			            }else{
			                values.push({r:r,c:_c,value:d});
			            }
			        }
			    }
			    if(lr-r<lc-c){
			        direction='left-right';
			    }else if(lr-r>lc-c){
			        direction='top-bottom';
			    }else{
			        direction='';
			    }
			    return [direction, values];
			}


		});





	</script>
	
</body>
</html>